package com.example.demo.exception;

/**
 * @author Jack
 * @Title: 业务异常结构体
 * @Description: 业务异常结构体
 * @date 2018年1月7日14:28:13
 */
public class BusinessException extends RuntimeException {

    private int code;
    private String msg;


    public BusinessException(ExceptionCode e) {
        this.code = e.getCode();
        this.msg = e.getMsg();
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
